/* 
 * File:   RemoveStackCommand.h
 * Author: Gab'z
 *
 * Created on 5 juin 2012, 02:36
 */

#ifndef REMOVESTACKCOMMAND_H
#define	REMOVESTACKCOMMAND_H

#include "StackListCommand.h"

namespace calculator {

    class RemoveStackCommand : public StackListCommand {
        friend class CommandMap;

    public:
        virtual ~RemoveStackCommand();

        std::string isExecutable() const;
        virtual RemoveStackCommand* clone() const;

        const Memento* createMemento() const throw (CommandException);
        void restoreFromMemento(const Memento* memento) const throw (MementoException);

    protected:

    private:
        void apply(StackList* stacklist) const throw (CommandException);

        RemoveStackCommand(const std::string name);
        RemoveStackCommand(const RemoveStackCommand& orig);
    };

}

#endif	/* REMOVESTACKCOMMAND_H */

